

package com.hazelcast.spi.impl.executionservice.impl;

import com.hazelcast.spi.impl.InternalCompletableFuture;

import java.util.concurrent.Future;

final class CompletableFutureEntry<V> {

    final InternalCompletableFuture<V> completableFuture;

    CompletableFutureEntry(Future<V> future) {
        this.completableFuture = new BasicCompletableFuture<>(future);
    }

    boolean processState() {
        return completableFuture.isDone();
    }
}
